<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        window.onload = function () {
            document.getElementById('jsBtn').onclick = function () {
                alert('JS按钮被点击！');
                //打印DOM对象
                console.log( document.getElementById('jsBtn'));
            }
        }
    </script>
    <script type="text/javascript" src="../../js/jquery-1.7.2.js"></script>
    <script type="text/javascript">
        $(function () {
            $('#jqBtn').click(function () {
                alert('JQ按钮被点击！');
                console.log($('#jqBtn'));
            });
        });
    </script>
</head>
<body>
<button id="jqBtn">jQuery按钮</button>
<button id="jsBtn">JavaScript按钮</button>
</body>
</html>